import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  server:{
    host: true,
    // https: true,
    port: 8080,
    open: '/'
  },
  build:{
    assetsDir:"static",
    rollupOptions:{
      output:{
        chunkFileNames:'static/js/[name]-[hash].js',
        entryFileNames:"static/js/[name]-[hash].js",
        assetFileNames:"static/[ext]/name-[hash].[ext]"
      }
    }
  }
})

// localhost === 127.0.0.1
